Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: instance refresh missing properties #121

Merged
merged 5 commits into from
Oct 20, 2023

Conversation

ebarriosjr
Copy link
Contributor

what

This PR adds two missing properties to the instance_refresh stanza.

why

Right now there is no way to configure scale_in_protected_instances and standby_instances in the instance refresh stanza.

references

This solves: #120

@ebarriosjr ebarriosjr requested review from a team as code owners September 12, 2023 10:29
@RoseSecurity
Copy link

@dotCipher, I am currently utilizing v0.34.1 of this module with no values set for instance_refresh and woke up to this error:

Error: starting Auto Scaling Group instance refresh: 
ValidationError: 2 validation errors detected: Value '' at 'preferences.scaleInProtectedInstances' failed to satisfy constraint: 
Member must satisfy enum value set: [Ignore, Wait, Refresh]; 
Value '' at 'preferences.standbyInstances' failed to satisfy constraint: Member must satisfy enum value set: 
[Terminate, Ignore, Wait]

Do you think this PR would fix the issue?

@ebarriosjr
Copy link
Contributor Author

@RoseSecurity I had the same issue. If you upgrade to v0.35.1 this should solve the issue you are having. But if you try to change any of the values from those properties it is not going to work. Their are set to the default that is "Ignore". This PR should fix that and allow you to change the values.

@ebarriosjr
Copy link
Contributor Author

@RoseSecurity I missed adding the values to the variables file but it is fixed now. I tested it by setting my fork as the source of the module and it works. Just FYI

@dudymas
Copy link
Contributor

dudymas commented Oct 20, 2023

/terratest

@dudymas dudymas added the enhancement New feature or request label Oct 20, 2023
@dudymas
Copy link
Contributor

dudymas commented Oct 20, 2023

/terratest

@dudymas
Copy link
Contributor

dudymas commented Oct 20, 2023

Thanks for the contribution!

@dudymas dudymas merged commit 7bf4736 into cloudposse:main Oct 20, 2023
8 checks passed
@y3ti
Copy link

y3ti commented Oct 23, 2023

This change is not compatible with aws provider 4.x (it requires at least aws provider 5.16):

https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#5160-september--8-2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants